<?php
/**
 * Created by PhpStorm.
 * User: 671643387
 * Date: 2016/8/12
 * Time: 17:05
 */

// GM命令类型
//enum GM_CMD {
//  GM_CMD_SEND_MAIL            = 1,	// 发送邮件
//};
define('GM_CMD_SEND_MAIL',          1);

// GM命令状态
//enum GMCommandState {
//  GM_CMD_STATE_READY			= 0,	// 准备就绪，可以被处理
//	GM_CMD_STATE_PROCESSING		= 1,	// 正在处理
//	GM_CMD_STATE_PROCESSED		= 2,	// 已处理
//	GM_CMD_STATE_DATA_ERROR		= 3,	// 数据错误
//	GM_CMD_STATE_PROCESS_ERR	= 4,	// 处理出错
//	GM_CMD_STATE_UNKNOWN_CMD	= 5,	// 未知命令
//	GM_CMD_STATE_MAX			= 5,
//};
define('GM_CMD_STATE_READY',        0);
define('GM_CMD_STATE_PROCESSING',   1);
define('GM_CMD_STATE_PROCESSED',    2);
define('GM_CMD_STATE_DATA_ERROR',   3);
define('GM_CMD_STATE_PROCESS_ERR',  4);
define('GM_CMD_STATE_UNKNOWN_CMD',  5);
define('GM_CMD_STATE_MAX',          5);


//enum GMMailCommandState {
//  GM_MAIL_STATE_MAIN_FULL		= GM_CMD_STATE_MAX + 1,	// 收件人邮箱已满
//	GM_MAIL_STATE_NO_RECEIVER	= GM_CMD_STATE_MAX + 2,	// 不存在的收件人
//};
define('GM_MAIL_STATE_MAIN_FULL',   GM_CMD_STATE_MAX + 1);
define('GM_MAIL_STATE_NO_RECEIVER', GM_CMD_STATE_MAX + 2);